package com.company.site.vote;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.company.site.mode.vote.Lottery;
import com.company.site.mode.vote.Player;
import com.company.site.mode.vote.Statistics;
import com.company.site.mode.vote.Vote;

@Repository
public interface VoteMapper {

	List<Player> findPlayerInfo(Player player);

	void addPlayerVotedNum(Long id);

	void addVote(Vote vote);

	Statistics findStatistics();

	void addTotalVisted();

	void addTotalVoted();

	List<Player> loadVote(Integer page);

	Player findPlayerById(Long id);

	void addPlayer(Player player);

	List<Player> findRankPlayer();

	void addTotalPlayer();

	List<Vote> findTodayVoteListByOpenid(String openid);

	void updatePlayerC(Player player);

	void cheatVote(List<Vote> list);

	void cheatTotalVoted(Map<String, Object> map);

	void cheatPlayerVotedNum(Map<String, Object> map);

	List<Vote> findTodayVoteListByOpenidAndSamePlayer(Vote voteSearch);

	Vote getVoteByOpenid(String openid);

	Integer addLottery(Lottery lottery);

	Lottery getLotteryById(Long id);

	void updateLotteryMobile(Lottery lottery);

	void updateVoteLotteryStatus(Long id);

}
